const jws=require('jsonwebtoken')
module.exports = (req, res, next) => {
    if (req.method === 'POST' && req.path === "/login") {
        let { username, password } = req.body
        if (username === 'admin' && password === '123456') {

        }
        res.status(200).json({
            success: true,
            data: {
                token: '1111233aax',
            }
        })
    }
    next()
}